<?php
session_start();

include_once( 'config.php' );
include_once( 'saetv2.ex.class.php' );

$o = new SaeTOAuthV2( WB_AKEY , WB_SKEY );

$code_url = $o->getAuthorizeURL( WB_CALLBACK_URL );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>清爽版微博</title>
<style>
* {
	margin: 0;
	padding: 0;
}

body {
	height: 100%;
	min-height: 600px;
}

#main {
	background: url(/images/background.png) no-repeat right bottom;
	width: 960px; margin: 0 auto;
	height: 100%;
	min-height: 600px;
}

#loginButton {
	width: 239px;
	height: 48px;
	background: url(/images/login.png) no-repeat center center;
	position: relative;
	left: 120px;
	top: 160px;
	cursor: pointer;
}

#bgbob {
	width: 150px;
	height: 150px;
	background: url(/images/background_bob.png) no-repeat center center;
	position: relative;
	left: 420px;
	top: 20px;
}

#motto {
	position: relative;
	left: 100px;
	top: 130px;
	width: 400px;
	height: 240px;
	background: url(/images/background_motto.png) no-repeat center center;
}

#notice {
	background: #ffffeb;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}
</style>
</head>
<body>
<div style="width: 100%; height: 100%; position: absolute;">
<div id="main">
<div id="loginButton" onclick="location.href='<?php echo $code_url; ?>'"></div>
<div id="bgbob"></div>
<div id="motto"></div>
</div>
</div>
</body>
</html>